#pragma once
#include <string>
#include <iostream>
using namespace std;
class room
{
private:
	double area;
	string type_of_room;

	public:

		room();
		room(double area, string type_of_room);
		void read();
		void write();

		double GetArea(){
			return area;
		}
		void SetArea(double area){
			this->area = area;
		}
		string GetTypeOfRoom(){
			return type_of_room;
		}
		void SetTypeOfRoom(string type_of_room){
			this->type_of_room = type_of_room;
		}

		friend ostream & operator << (ostream &ut, const room &r){
			ut << "(" << r.area << "," << r.type_of_room << ")";
			return ut;
		}
		friend istream & operator >> (istream &in, room &r){
			string temp;
			getline(in, temp, '(');
			in >> skipws >> r.area;
			getline(in, temp, ',');
			getline(in, r.type_of_room, ')');
			return in;
		}
};

